package com.hk.core.autoconfigure.data.database;

import lombok.Data;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Map;

/**
 * @author Kevin
 * @date 2023-10-25 21:54
 */
@Data
@ConfigurationProperties(prefix = "hk.multi-ds")
public class MultiDataSourceProperties {

    private boolean enabled = false;

    private Map<String, String> userNameTenantIdMap;

    private Map<String, DataSourceProperties> dataSources;

}
